﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true" CodeBehind="Contacts.aspx.cs" Inherits="SharingCenter.Web.Home.Contacts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    <asp:Literal ID="ltrNickName" runat="server"></asp:Literal>的好友
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.dh{width:300px;}
.dd{padding-left:300px;}
.dc{height:70px; border:1px solid transparent;}
/*.item{height:20px; line-height:20px;}*/
.gray{color:Gray;}
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<div class="ctn-p-t">
<h2 class="w5">
     <asp:Literal ID="ltrNickName1" runat="server"></asp:Literal>的好友
     <%if(cc>0){ %>
    <div class="litetext sz-s st-n"><%=ta %>一共有<%=cc %>位好友。</div>
<%} %>
</h2>

    <asp:ListView ID="ListView1" runat="server" GroupItemCount="1">
        <LayoutTemplate>
            <table cellpadding="0" cellspacing="0" style="width:80%">
                <tr runat="server" id="groupPlaceholder"></tr>
            </table>
        </LayoutTemplate>
        <GroupTemplate>
            <tr>
                <td runat="server" id="itemPlaceholder"></td>
            </tr>
        </GroupTemplate>
        <ItemTemplate>
            <td >
                <div class="ctn2 dc">
                    <div class="left dh">
                        <div class="left">
                        <myuc:ThumbAvatar runat="server" UserId='<%#Container.DataItem %>' ShowNickName="false" />
                        </div>
                        <div class="left ctn-p-l">
                            <cc:NickNameLink runat="server" ShowOnlineStatus="true" OnlineImageUrl="~/Content/images/icons/lamp_16.png"
                             OnlineText="在线"
                             UserId='<%#Container.DataItem %>'  />
                        </div>
                    </div>
                    <div class="right textnear">
                            
                            <div class="item">
                            <cc:HomepageLink ID="HomepageLink1" runat="server" UserId='<%#Container.DataItem %>'>[访问主页]</cc:HomepageLink>
                            </div>
                           <%--<div class="hr1"></div>
                           <div class="item">
                           <a href="#">[发送消息]</a>
                           </div>--%>
                            <%--<div class="hr1"></div>
                            <div class="item">
                                <asp:LinkButton ID="lnkDelete" CommandName="DeleteContact" runat="server" CssClass="gray">[删除好友]</asp:LinkButton>
                                <ajaxctrltool:ConfirmButtonExtender runat="server" TargetControlID="lnkDelete"
                                 ConfirmText="真的要删除这位好友吗？" />
                           </div>--%>
                         
                       
                    </div>
                </div>
            </td>
        </ItemTemplate>
       <ItemSeparatorTemplate>
        <td>
            <div class="hr1"></div>
        </td>
       </ItemSeparatorTemplate>
        <EmptyDataTemplate>
            <myuc:IconSet runat="server" CssClass="nss ns-info" Text="目前没有好友。" />
        </EmptyDataTemplate>
    </asp:ListView>
    </div>
</asp:Content>
